package com.gong.DesignPattern.AdapterPattern;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/6/13 0013 9:48
 */
public class AdapterImpl implements AdapterInterface {
    @Override
    public void play(String name, String type) {
        if ("media".equals(type)){
            new MediaPlayer().playMedia();;
        }
        if ("video".equals(type)){
            new VideoPlayer().playVideo();
        }
    }
}
